/*
NeverStar Games
*/

#pragma once

#include "d3d9.h"
#include "d3dx9.h"
#include "Gameplay.h"

// Add pragma comments so we do not have to change
// the project dependencies
#pragma comment (lib, "d3d9.lib")
#pragma comment (lib, "d3dx9.lib")
#pragma comment (lib, "winmm.lib")	// Required for timeGetTime method

class CDirectX
{
private:
	// Attributes
	IDirect3D9*			m_pD3DObject;
	IDirect3DDevice9*	m_pD3DDevice;

	// Gameplay pointer
	Gameplay*			m_pGameplay;

public:
	// Constructor
	CDirectX(void);

	// Destructor
	~CDirectX(void);

	// Behaviors
	bool Init( HWND hWnd, HINSTANCE hInst, int nWidth, int nHeight, bool bWindowed);
	void Update(HWND hWnd, HINSTANCE hInst, int nWidth, int nHeight, float deltaTime);
	bool Render(float deltaTime);
	void Shutdown();
};
